//
//  ORMyTableViewCell.m
//  NewsHots
//
//  Created by rimi on 2016/12/2.
//  Copyright © 2016年 zhongshuilian. All rights reserved.
//

#import "ORMyTableViewCell.h"

@interface ORMyTableViewCell ()

//图标
@property (nonatomic, strong) UIImageView *iconView;
//
@property (nonatomic, strong) UILabel *text_Label;


@end

@implementation ORMyTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self.contentView addSubview:self.iconView];
        [self.contentView addSubview:self.text_Label];
    }
    return self;
}

#pragma mark - getter

- (UIImageView *)iconView{
    if (!_iconView) {
        _iconView = [[UIImageView alloc]initWithFrame:CGRectMake(5, CGRectGetMidY(self.frame)-15, 30, 30)];
    }
    return _iconView;
}

- (UILabel *)text_Label{
    if (!_text_Label) {
        _text_Label = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.iconView.frame)+10, CGRectGetMidY(self.frame)/AAdaptationWidth()-20, 80, 40)];
    }
    return _text_Label;
}


@end
